package com.ran.java_gobang_new.pojo.request;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-09-02
 * Time: 23:01
 */
@Data
public class UserInfoLoginRequest {
    @Pattern(regexp = "^[a-zA-Z]*$",message = "登录的用户名只能是英文字母哦!")
    @Length(min = 3,max = 20,message = "登录的用户名应该在[3,20]之间哦!")
    private String userName;

    @Length(min = 3,max = 20,message = "登录的密码应该在[3,20]之间哦!")
    private String password;
}
